
<label>Select a local gadget:</label><br/>
<select id="spec_field" name="spec_field">
	<% @urls.each do |url| %>
		<option value="<%= url %>"><%= url %></option>
	<% end %>
	<option value="http://www.labpixies.com/campaigns/todo/todo.xml">http://www.labpixies.com/campaigns/todo/todo.xml</option>
</select>
<br/><br/>
<label>or enter a URL for a remote gadget:</label><br/><br/>
<input id="spec_field_input" type="text" style="width:500px;" />
<br/><br/><br/>
<label id="select_view_label">Select View:</label>
<select id="view_type" name="view_type">
	<option value="canvas">Canvas</option>
	<option value="home">Home</option>
	<option value="profile">Profile</option>
	<option value="preview">Preview</option>
</select>
<button id="metadata_btn" dojoType="dijit.form.Button" onclick="requestGadgetMetaData()">Request Metadata</button>

<div id="metadata_display">
	<textarea id="metadata_text">
		Metadata will go here...
	</textarea>
</div>

<button disabled='true' id="render_btn" dojoType="dijit.form.Button" onclick="renderGadget()">Render Gadget</button>

<div id="gadget_area"></div>

